<form id="{$form.name}" name="{$form.name}">

<div style="padding-left:25px; ">

	<div>
		{if $form.icon !='' }
	<div class="form_icon"><img  src="{$form.icon}" border="0" /></div>
	{/if}
		<div ><h2>{$form.title}</h2></div>
	</div>
		{if $form.description}
		<p class="input_row" style="line-height:20px;padding-bottom:20px;">		
		<span>{$form.description}</span>
		</p>
		{else}
		<div style="height:15px;"></div>
		{/if}
	<div style="padding-left:30px;" >
	{foreach item=setname name=elemsets  from=$form.elementSets}
		<div class=" upline">
		
		<h2>{$setname}</h2>
		{if $setname!='Schedule'}
		
		{foreach item=item key=itemName from=$dataPanel}
			{if $item.elementset eq $setname}
				{if $item.type eq 'CKEditor' or $item.type eq 'RichText' or $item.type eq 'Textarea'}
					<table  id="{$itemName}_container" class="input_row">
					<tr>
					<td style="width:80px;">	
						<label style="text-align:left">{$item.label}</label>
					</td>
					<td>
						{if $errors.$itemName}
						<span class="input_error_msg" style="width:240px;">{$errors.$itemName}</span>
						{elseif $item.description}
						<span class="input_desc" style="width:240px;">{$item.description}</span>			
						{/if}
					</td>
					</tr>
					<tr><td colspan="2" align="center" >
						<span class="label_text" style="width:680px;height:auto">{$item.element}</span>
									
					</td></tr>
					</table>		
				{else}
					{if $item.type eq 'Hidden' }
					<table  id="{$itemName}_container" class="input_row" style="display:none">
					{else}
					<table  id="{$itemName}_container" class="input_row">
					{/if}					
					<tr>
					<td >	
						<label style="text-align:left">{$item.label}</label>
					</td>
					<td>
						{if $itemName eq 'fld_command'}
						<span class="label_text" style="width:550px;">{$item.element}</span>
						{else}
						<span class="label_text">{$item.element}</span>
						{/if}
						{if $errors.$itemName}
						<span class="input_error_msg" style="width:240px;">{$errors.$itemName}</span>
						{elseif $item.description}
						<span class="input_desc" style="width:240px;">{$item.description}</span>			
						{/if}
					</td>
					</tr>
					</table>
				{/if}			
			{/if}
			{/foreach}
		{else}
				
	
				
				<table  id="time_container" class="input_row">
				<tr>
					{assign var=item value=$dataPanel.fld_hour}
					{assign var=itemName value="fld_hour"}
					<td >	
						<label style="text-align:left">{$item.label}</label>
					</td>
					<td>
					
						<span class="label_text" style="width:200px;">{$item.element}</span>
						
					</td>
					{assign var=item value=$dataPanel.fld_minute}
					{assign var=itemName value="fld_minute"}
					<td >	
						<label style="text-align:left">{$item.label}</label>
					</td>
					<td>
					
						<span class="label_text" style="width:200px;">{$item.element}</span>
						
					</td>					
				</tr>
				</table>
				
				<table  id="date_container" class="input_row">
				<tr>
					{assign var=item value=$dataPanel.fld_month}
					{assign var=itemName value="fld_month"}
					<td >	
						<label style="text-align:left">{$item.label}</label>
					</td>
					<td>
						<span class="label_text" style="width:200px;">{$item.element}</span>						
					</td>
					{assign var=item value=$dataPanel.fld_day}
					{assign var=itemName value="fld_day"}
					<td >	
						<label style="text-align:left">{$item.label}</label>
					</td>
					<td>
					
						<span class="label_text" style="width:200px;">{$item.element}</span>
						
					</td>					
				</tr>
				</table>
				
				<table  id="weekdate_container" class="input_row">
				<tr>
					{assign var=item value=$dataPanel.fld_weekday}
					{assign var=itemName value="fld_weekday"}
					<td >	
						<label style="text-align:left">{$item.label}</label>
					</td>
					<td>
						<span class="label_text" style="width:200px;">{$item.element}</span>						
					</td>
					
				</tr>
				</table>
		{/if}
		
		</div>
	{/foreach}
		<div style="height:10px;"></div>
		<p class="input_row">
			
			{foreach item=elem from=$actionPanel}
				{$elem.element}
			{/foreach}
		</p>
	</div>
	
		<div style="height:15px;">
		<div id='{$form.name}.load_disp' style="display:none;">
		<img  src="{$image_url}/form_ajax_loader.gif"/>
		</div>
		</div>
	
</div>

</form>